﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PSN_list.aspx.cs" Inherits="TRPOP.CMS.Web.Admin.PSN_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>发布点(PSN)管理 -
        <%=base.m_strBaseAdminPageName%></title>
</head>
<body>
    <form id="form1" runat="server">
    <table id="page_navigator">
        <tr>
            <td class="align_l">
                当前位置：系统管理 -> 发布点(PSN)管理
            </td>
        </tr>
    </table>
    <script language="JavaScript">
        function psnDetect(PSNID) {
            var returnValue = 0;

            if (returnValue == '1') {
                alert('检测成功 ！该发布点是有效的。');
            } else {
                alert('检测失败！\n本地发布请确认“发布路径”是否正确，远程发布请确认“FTP帐户”有效性');
            }


        }
 
    </script>
    <cms:DropDownList ID="ddlType" runat="server" DataTextField="Value" DataValueField="Key"
        Visible="false">
    </cms:DropDownList>
    <table class="table_list">
        <tr class="tr_title">
            <th width="10%">
                PSNID</thd>
                <th width="30%">
                    PSN
                </th>
                <th width="30%">
                    发布类型
                </th>
                <th>
                    执行操作
                </th>
        </tr>
        <cms:Repeater runat="server" ID="rptList">
            <ItemTemplate>
                <tr>
                    <td>
                        <%#Eval("psnid") %>
                    </td>
                    <td>
                        <%#Eval("Name") %>
                    </td>
                    <td>
                        本地发布
                    </td>
                    <td>
                        <%-- <a href="javascript:psnDetect('<%#Eval("psnid") %>');">检测</a> --%>
                        <a href="PSN_save.aspx?id=<%#Eval("psnid") %>">编辑</a>
                        <cms:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClick="lbtnDelete_Click"
                            CommandArgument='<%#Eval("psnid") %>' OnClientClick="return confirm('你确定要删除吗？');"></cms:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </cms:Repeater>
        <tr class="tr_btn">
            <td colspan="4">
                <input type="button" class="button_style" name="Submit" value=" 新增发布点(PSN) " onclick="window.location='PSN_save.aspx'" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
